package templete_chanin;

// 具体处理器B
public class ConcreteHandlerB extends HandlerTemplate {
    @Override
    protected void processRequest(int request) {
        System.out.println("ConcreteHandlerB 处理请求：" + request);
    }

    @Override
    protected boolean canHandle(int request) {
        return request >= 10 && request < 20;
    }
}
